/**
 * jims
 */
package com.jims.master.modules.drug.dao;

import com.jims.master.common.persistence.CrudDao;
import com.jims.master.common.persistence.annotation.MyBatisDao;
import com.jims.master.modules.drug.entity.DrugProvideApplication;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 药品发放生申请DAO接口
 * @author zhuq
 * @version 2017-03-18
 */
@MyBatisDao
public interface DrugProvideApplicationDao extends CrudDao<DrugProvideApplication> {

    /**
     * 查询申请出库的数据
     * @param drugProvideApplication
     * @return
     * @author fengyg
     */
    public List<DrugProvideApplication> findApplicationExportList(DrugProvideApplication drugProvideApplication);

    /**
     * 修改申请记录的已发放库存
     * @param id 申请记录ID
     * @param quantityOut 已发放库存
     * @return
     * @author fengyg
     */
    public int updateQuantityOut(@Param("quantityOut")Double quantityOut,@Param("id")String id);
}